home *** CD-ROM | disk | FTP | other *** search
- 5 dv=peek(186):ifdv<8thendv=8
- 10 sys57812"tiles.font",dv,0:poke780,.:poke781,.:poke782,56:sys65493
- 15 print"[147][151]";:poke53272,31:poke650,128
- 20 poke53270,peek(53270)or16
- 22 gosub10010
- 25 poke53280,c1:poke53281,c2:poke53282,c4:poke53283,c5
- 30 fori=.to23:print"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@[157][148]@":next
- 40 print"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@[157][148]@"
- 50 printtab(5)"[193][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][194][195]"
- 60 fori=.to14:printtab(5)"[196] [197]":next
- 70 printtab(5)"[198][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][199][200]"
- 80 gosub1010:poke198,0
- 100 rem --- main ---
- 110 geta$:ifa$=""then110
- 120 ifa$<"1"ora$>"7"then110
- 130 ifa$="7"then200
- 140 onval(a$)gosub910,920,930,940,950,960
- 150 gosub1010:goto110
- 200 poke214,17:print:poke646,1+(c2=1)
- 210 printtab(8)"want to quit? (y) or (n)"
- 220 geta$:ifa$<>"y"anda$<>"n"then220
- 230 ifa$="n"thenprinttab(8)"[145] press a key [1-7] ":goto110
- 300 rem --- back to the tower ---
- 320 poke53270,peek(53270)and239:poke53272,21
- 330 goto40000
- 900 rem --- subroutines ---
- 910 c1=c1+1and15:poke53280,c1:return
- 920 c2=c2+1and15:poke53281,c2:return
- 930 c3=c3+1and7:poke646,c3+8:poke648,200:print"[147]":poke648,4:return
- 940 c4=c4+1and15:poke53282,c4:return
- 950 c5=c5+1and15:poke53283,c5:return
- 960 fori=.to7:poke14336+i,rnd(1)*256:next:return
- 1000 rem --- info ---
- 1010 poke214,5:print
- 1020 poke646,1+(c2=1)
- 1030 printtab(12)"multicolor tiles"
- 1040 printtab(8)"[1] border : "c$(c1)
- 1050 printtab(8)"[2] background : "c$(c2)
- 1060 printtab(8)"[3] foreground : "c$(c3)
- 1070 printtab(8)"[4] multicolor1 : "c$(c4)
- 1080 printtab(8)"[5] multicolor2 : "c$(c5)
- 1090 printtab(20)"[176][192][174] [176][192][174]"
- 1100 printtab(8)"[6] pattern [221]";
- 1101 poke646,c3+8:print"@";:poke646,1+(c2=1):print"[221] [221]";
- 1102 poke646,c3:print"@";:poke646,1+(c2=1):print"[221]"
- 1110 printtab(20)"[173][192][189] [173][192][189]"
- 1120 printtab(8)"[7] quit"
- 1130 printtab(12)"press a key [1-7]"
- 1140 return
- 10000 open15,8,15,"s0:mc tiles":close15:save"mc tiles",8:end
- 10010 c1=6:c2=0:c3=3:c4=6:c5=14:x=rnd(-ti)
- 10020 dimc$(15):fori=.to15:readc$(i):next
- 10100 return
- 20000 rem --- colors ---
- 20010 data"black ","white ","red "
- 20020 data"cyan ","purple ","green "
- 20030 data"blue ","yellow ","orange "
- 20040 data"brown ","pink ","d.grey "
- 20050 data"m.grey ","l.green","l.blue "
- 20060 data"l.grey "
- 40000 a$="hello connect":fori=8to9:close2:open2,i,2:close2:ifstthen40020
- 40010 close15:open15,i,15,"r0:"+a$+"="+a$:input#15,er:close15:ifer=63then40030
- 40020 next:print"[147]":poke2048,0:poke44,8:poke53272,23:poke186,8:end
- 40030 poke646,peek(53281):print"[147]load"chr$(34)a$chr$(34)","i
- 40040 print"run":poke44,8:poke2048,0:poke631,13:poke632,13:poke198,2:end
-